package upc.condominio.edu.domain;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import upc.condominio.edu.domain.Perfil;
import javax.persistence.ManyToOne;

@RooJavaBean
@RooToString
@RooEntity
public class Usuario extends Persona {

    @NotNull
    @Size(max = 30)
    private String username;

    @NotNull
    @Size(max = 30)
    private String clave;

    @ManyToOne
    private Perfil perfil;
}
